﻿using System;

namespace Pfz.RemoteGaming.Internal
{
	internal struct _UnregisterAction:
		IDisposable
	{
		private RemoteGameRoom _room;
		private Type _type;
		internal _UnregisterAction(RemoteGameRoom room, Type type)
		{
			_room = room;
			_type = type;
		}
		public void Dispose()
		{
			_room._registeredActions.Remove(_type);
		}
	}
}
